
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.ArrayList,
                 java.util.Iterator,
                 com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/userProfile.do"/>

<html:html>

<HEAD><TITLE>Scalar Soft</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<script language='javascript'>
function saveProfile() {
    document.userProfileForm.submit();
}
</script>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor='#ffffff' leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>


<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff colSpan=6><IMG height=28
      src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD></TR>
  <TR>
    <TD vAlign=top noWrap colSpan=6>
	<img src=<%=chipTracContext%>/jsp/includes/images/top_curve.gif width=32 height=28></TD></TR>

  </TBODY>
  </TABLE><BR>
</TD>
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="80%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<center>
    <span class="NArialW">Profile - 
        <bean:write name='userProfileForm' property='firstName' />&nbsp;
        <bean:write name='userProfileForm' property='lastName' />
    </span>
</center>

<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>

<html:form name="userProfileForm" type="com.scalar.chiptrack.users.forms.UserProfileForm" action="/userProfile.do?action=save">

<table border="0" width="90%" align=right>

    <tr><td colspan='5'><chiptrack:info styleClass="NArialL"/></td></tr>
    <tr><td colspan='5'><chiptrack:errors styleClass="NArialL"/></td></tr>
    <tr><td colspan='5'><img height=20 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif"></td></tr>

    <tr>
        <td width="15%">
        <font class="NArialL" >Old Password</font>
        <td colspan=3> 
            <input type="password" name="oldPassword" size="10" maxlength="10" class="txfield">
        </td>
    </tr>

    <tr>
        <td width="20%"><font class="NArialL" >New Password</font></td>
        <td width="20%"><font class="NArialL" >
            <input type="password" name="newPassword" size="10" maxlength="10" class="txfield"></font>
        </td>
        <td width="8%">&nbsp;</td>
        <td width="24%"><font class="NArialL" >Repeat New Password</font></td>
        <td width="25%">
            <input type="password" name="newPassword1" size="10" maxlength='10' class="txfield">
        </td>
    </tr>

    <tr>
    <td width="20%"><font class="NArialL" >&nbsp;</font></td>
    <td width="20%">&nbsp;</td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL" >&nbsp;</font></td>
    <td width="32%">&nbsp;</td>
  </tr>

    <tr>
    <td width="20%"><font class="NArialL" >First Name</font></td>
    <td width="20%">
        <html:text name="userProfileForm" property="firstName" size="10" maxlength='20' styleClass="txfield"/>
    </td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL" >Last Name</font></td>
    <td width="32%">
        <html:text name="userProfileForm" property="lastName" size="10" maxlength='20' styleClass="txfield"/>
    </td>
  </tr>
  <tr>
    <td width="20%"><font class="NArialL" >Phone No</font></td>
    <td width="20%">
        <html:text name="userProfileForm" property="phoneNumber" size="10" maxlength='10' styleClass="txfield" onkeypress='validatePhoneNumber(this)'/>
    </td>
    <td width="8%">&nbsp;</td>
    <td width="20%"><font class="NArialL" >Fax No</font></td>
    <td width="32%">
        <html:text name="userProfileForm" property="faxNumber" size="10" maxlength='10' styleClass="txfield" onkeypress='validatePhoneNumber(this)'/>
    </td>
  </tr>
  <tr>
    <td width="20%"><font class="NArialL" >Email</font></td>
    <td width="20%">
        <html:text name="userProfileForm" property="email" size="20" maxlength='50' styleClass="txfield"/>
    </td>
    <td width="8%">&nbsp;</td>
    <td width="20%"></td>
    <td width="32%"></td>
    </tr>
  
    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>
    <td width="20%" height="23" colspan=2><font class="NArialL" >Address:</font></td>
    <td width="8%" height="23"></td>
    <td width="20%" height="23"></td>
    <td width="32%" height="23"></td>
    </tr>
  <tr>
    <td width="20%" height="23"><font class="NArialL" >Address1</font></td>
    <td width="20%" height="23">
        <html:text name="userProfileForm" property="address1" size="20" maxlength='50' styleClass="txfield"/>
    </td>
    <td width="8%" height="23"></td>
    <td width="20%" height="23"><font class="NArialL" >Address2</font></td>
    <td width="32%" height="23">
        <html:text name="userProfileForm" property="address2" size="20" maxlength='50' styleClass="txfield"/>
    </td>
  </tr>
  <tr>
    <td width="20%" height="23"><font class="NArialL" >City</font></td>
    <td width="20%" height="23">
        <html:text name="userProfileForm" property="city" size="20" maxlength='50' styleClass="txfield"/>
    </td>
    <td width="8%" height="23"></td>
    <td width="20%" height="23"><font class="NArialL" >State</font></td>
    <td width="32%" height="23">
        <html:text name="userProfileForm" property="state" size="20" maxlength='20' styleClass="txfield"/>
    </td>
  </tr>
  <tr>
    <td width="20%" height="23"><font class="NArialL" >Country</font></td>
    <td width="20%" height="23">
        <html:text name="userProfileForm" property="country" size="20" maxlength='20' styleClass="txfield" />
    </td>
    <td width="8%" height="23"></td>
    <td width="20%" height="23"><font class="NArialL" >Zip Code</font></td>
    <td width="32%" height="23">
        <html:text name="userProfileForm" property="zipCode" size="5" maxlength='10' styleClass="txfield"/>
    </td>

  </tr>

    <tr><td colspan='5'><br><br></td></tr>

    <tr><td colspan='5'>
        <font class="NArialL" >
            <html:checkbox name="userProfileForm" property='receiveNotifications'/> Receive notifcations
        </font>
    </td></tr>


  <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>
  <tr><td colspan=5 align=center>
    <a href="javascript:saveProfile()"><img border="0" src="<%=chipTracContext%>/jsp/includes/images/save.gif" width="53" height="17"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:window.history.back();"><img onMouseOver="window.status='Click here to go back';return true"  border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"></a>
  </td></tr>
</table>

</html:form>

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<%@ include file="/jsp/includes/footer.jsp" %>

</BODY>

</html:html>